/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mygame.hudelements;

import com.jme3.asset.AssetManager;
import com.jme3.renderer.RenderManager;
import com.jme3.renderer.ViewPort;
import com.jme3.scene.Node;

/**
 *
 * @author Aicher
 */
public class InstrumentTest extends InstrumentControl {

    public InstrumentTest (Node guiNode,
            AssetManager assetManager,
            float instrumentLeftGridPosX,
            float instruemtLowerGridPosY,
            float hudReferenceSize,
            float instrumentGridWidth,
            float instrumentGridHeight,
            int screenHeight,
            boolean measureFromBottom,
            float minimalCalculationLoopTime
            ) {
        super(guiNode, assetManager,
                instrumentLeftGridPosX,
                instruemtLowerGridPosY,
                hudReferenceSize,
                instrumentGridWidth,
                instrumentGridHeight,
                screenHeight,
                measureFromBottom,
                minimalCalculationLoopTime);
        initTest();
    }
    
    private void initTest() {
        this.centralInstrumentNode.attachChild(this.createInstrumentElementAbsolute("myTest", 
                "Textures/hudelements/alt_instrument.png"));
    }
        
    @Override
    protected void controlUpdate(float tpf) {
    }

    @Override
    protected void controlRender(RenderManager rm, ViewPort vp) {
    }
    
}
